<extend name="Public/base"/>

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>邀约客服业绩统计</h2>

	</div>
    <div class="tools">
            <form action="{:U()}" method="post">
                选择时间：
                <input type="text" value="{$begin}" name="time_start" class="date" style="width:80px;" onclick="laydate()"> - <input type="text" value="{$end}" name="time_end" class="date" style="width:80px;" onclick="laydate()">
				客服工号：
				<select name="kf">
                        <volist name="kefu" id="vo">
                        <option value="{$vo.uid}" <eq name="vo.uid" value="$kf"> selected</eq>  >{$vo.nickname}</option>
                        </volist>
                </select>
                <span class="buttons">
                    <input type="submit"  id="submit" class="btn" value="开始查询">
                </span>
            </form>
    </div>

	<!-- 数据列表 -->
	<div class="data-table">
        <div class="data-table table-striped">
<table class="">
    <thead>
        <tr>
		<th style="width:80px">日期</th>
        <th class="">建单量（总计）</th>
		<th class="">微信量（总计）</th>
        <th class="">手机量（总计）</th>
		<th class="">建单量（早）</th>
        <th class="">微信量（早）</th>
		<th class="">手机量（早）</th>
		<th class="">建单量占比早</th>
		<th class="">手机量占比早</th>
		<th class="">微信量占比早</th>
        <th class="">建单量（晚）</th>
        <th class="">微信量（晚）</th>
		<th class="">手机量（晚）</th>
		<th class="">建单量占比晚</th>
		<th class="">手机量占比晚</th>
		<th class="">微信量占比晚</th>
		</tr>
    </thead>
    <tbody>
	<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
			<td>{$vo.time}</td>
			<td>{$vo.jd}</td>
            <td>{$vo.qq}</td>
            <td>{$vo.phone}</td>
            <td>{$vo.zjd}</td>
            <td>{$vo.zqq}</td>
            <td>{$vo.zphone}</td>
            <td><?php echo number_format($vo['zjd']/$vo['jd'],2)*100; ?>%</td>
			<td><?php echo number_format($vo['zqq']/$vo['qq'],2)*100; ?>%</td>
			<td><?php echo number_format($vo['zphone']/$vo['phone'],2)*100; ?>%</td>
			<td>{$vo.wjd}</td>
            <td>{$vo.wqq}</td>
            <td>{$vo.wphone}</td>
            <td><?php echo number_format($vo['wjd']/$vo['jd'],2)*100; ?>%</td>
			<td><?php echo number_format($vo['wqq']/$vo['qq'],2)*100; ?>%</td>
			<td><?php echo number_format($vo['wphone']/$vo['phone'],2)*100; ?>%</td>			
		</tr>
		</volist>
		<else/>
		<td colspan="16" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
       <tr>
            <td style="background-color:#51D0CA;">总计</td>
            <td style="background-color:#51D0CA;">{$zj.jd}</td>
            <td style="background-color:#51D0CA;">{$zj.qq}</td>
            <td style="background-color:#51D0CA;">{$zj.phone}</td>
            <td style="background-color:#51D0CA;">{$zj.zjd}</td>
            <td style="background-color:#51D0CA;">{$zj.zqq}</td>
            <td style="background-color:#51D0CA;">{$zj.zphone}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['zjd']/$zj['jd'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;"><?php echo number_format($zj['zqq']/$zj['qq'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;"><?php echo number_format($zj['zphone']/$zj['phone'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;">{$zj.wjd}</td>
            <td style="background-color:#51D0CA;">{$zj.wqq}</td>
            <td style="background-color:#51D0CA;">{$zj.wphone}</td>
            <td style="background-color:#51D0CA;"><?php echo number_format($zj['wjd']/$zj['jd'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;"><?php echo number_format($zj['wqq']/$zj['qq'],2)*100; ?>%</td>
			<td style="background-color:#51D0CA;"><?php echo number_format($zj['wphone']/$zj['phone'],2)*100; ?>%</td>		
        </tr>
	</tbody>
    </table>

        </div>
    </div>
    <div class="page">

    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    
</block>
